package com.yunshipei.ui.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.yunshipei.base.BaseActivity;
import com.yunshipei.base.BaseIntentBuilder;
import com.yunshipei.enterplorer.R;
import com.yunshipei.ui.fragment.FontSizeSettingFragment;


public class FontSizeSettingsActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_font_size_settings);
        Fragment fragment = getSupportFragmentManager().findFragmentByTag(FontSizeSettingFragment.class.getName());
        if (fragment == null) {
            fragment = FontSizeSettingFragment.newInstance();
            getSupportFragmentManager().beginTransaction().add(R.id.fl_font_size_setting, fragment, fragment.getClass().getName()).commit();
        }
    }

    public static final class FontSizeSettingsIntentBuilder extends BaseIntentBuilder {

        public FontSizeSettingsIntentBuilder(Context context) {
            super(context);
        }

        @Override
        protected Class<?> getTargetClazz() {
            return FontSizeSettingsActivity.class;
        }
    }
}
